import {
	createRouter,
	createWebHistory,
	createWebHashHistory
} from 'vue-router';

const routes = [{

		path: '/',
		name: 'home',
		component: () => import('@/views/common/home.vue'),
		children: [{
				path: '/first',
				name: 'first',
				component: () => import('@/views/common/menu/first.vue'),

			},
			{
				path: '/overview',
				name: 'overview',
				component: () => import('@/views/common/menu/overview.vue'),
				children: [{
						path: '/overview/first',
						name: 'overview-first',
						component: () => import('@/views/common/menu/overview/first.vue'),

					},
					{
						path: '/overview/bigEvent',
						name: 'overview-bigEvent',
						component: () => import('@/views/common/menu/overview/bigEvent.vue'),

					},
					{
						path: '/overview/historyExpert',
						name: 'overview-historyExpert',
						component: () => import('@/views/common/menu/overview/historyExpert.vue'),

					},
					{
						path: '/overview/su',
						name: 'experts-su',
						component: () => import('@/views/common/menu/expert/su.vue'),

					},
					{
						path: '/overview/yang',
						name: 'experts-yang',
						component: () => import('@/views/common/menu/expert/yang.vue'),

					},
					{
						path: '/overview/zhou',
						name: 'experts-zhou',
						component: () => import('@/views/common/menu/expert/zhou.vue'),

					},

				]

			},
			{
				path: '/partyWork',
				name: 'partyWork',
				component: () => import('@/views/common/menu/partyWork.vue'),

			},
			{
				path: '/graduate',
				name: 'graduate',
				component: () => import('@/views/common/menu/graduate.vue'),

			},
			{
				path: '/undergraduate',
				name: 'undergraduate',
				component: () => import('@/views/common/menu/undergraduate.vue'),
			
			},



			{
				path: '/studentsWork',
				name: 'studentsWork',
				component: () => import('@/views/common/menu/studentsWork.vue'),

			},
			{
				path: '/teacherTeam',
				name: 'teacherTeam',
				component: () => import('@/views/common/menu/teacherTeam.vue'),

			},

		]


	},

]
const router = createRouter({
	history: createWebHistory(
		import.meta.env.BASE_URL),
	//history: createWebHashHistory(),//使用hash模式
	routes
})
export default router
